<% lineconst = 3%>
<% linenum = groupuserlist.size/lineconst%>
<% leftnum = groupuserlist.size%lineconst%>
<table>
<% for i in 0...linenum
%>
     <tr>
     <% for j in 0...lineconst
     %>
       <td>
       <%= render :partial => 'shared/userThumbImage', :object =>groupuserlist[i*lineconst+j]%>
       
       <br/>
       <%= link_to "#{groupuserlist[i*lineconst+j].display_name}", admin_user_path(groupuserlist[i*lineconst+j].login) %>
       </td>
     <%
     end
     %>
     </tr>
<%
   end
%>
<% if leftnum > 0%>
  <tr>
  <% for i in 0...leftnum%>
    <td>
    <%= render :partial => 'shared/userThumbImage', :object =>groupuserlist[linenum*lineconst+i]%><br/>
    <%= link_to "#{groupuserlist[linenum*lineconst+i].display_name}", admin_user_path(groupuserlist[linenum*lineconst+i].login) %>
    </td>
  <% end %>
  <% for i in 0...(lineconst-leftnum)%>
    <td  align="center">
    &nbsp;
    </td>
  <% end %>
  </tr>
<% end %>
</table>
